import request from '@/utils/request'

//获取student信息
export function getAllStudentInfo(pageNum,pageSize) {
  return request({
    url: '/admin/getAllStudentInfo',
    method: 'get',
    params:{
      pageNum,
      pageSize
    }

  })
}

//获取student信息
export function addStudent(data) {
  return request({
    url: '/admin/addStudent',
    method: 'post',
    data
  })
}

//修改student信息
export function editStudentInfoById(data) {
  return request({
    url: '/admin/editStudentInfoById',
    method: 'post',
    data
  })
}

//删除student信息
export function deleteStudentById(data) {
  return request({
    url: '/admin/deleteStudentById',
    method: 'post',
    data
  })
}

//根据studentname查询
export function getStudentInfoByName(data) {
  return request({
    url: '/admin/getStudentInfoByName',
    method: 'post',
    data
  })
}

//根据studentid查询
export function getStudentInfoById(data) {
  return request({
    url: '/admin/getStudentInfoById',
    method: 'post',
    data
  })
}

//根据studentname查询
export function deleteAllStudentById(ids) {
  return request({
    url: '/admin/deleteAllStudentById',
    method: 'get',
    params: {
      ids:ids
      //ids:ids
    }
  })
}
